#ifndef _PACKET_H
#define _PACKET_H

#include "stdafx.h"

struct PacketHeader
{
	unsigned short MessageType;
	unsigned short SecurityType;
	unsigned short ExchangeId;
	unsigned short MarketCenter;
	string Symbol;
};

struct PacketValueItem
{
	unsigned short TenforeIndicatorIndex;
	Int64 Value;
};
typedef vector<PacketValueItem> PacketValues;

struct HKBrokerIdList
{
	unsigned short Side;     
	vector<unsigned short> IdNums;
};

struct HKBrokerIds
{
	HKBrokerIdList BidSide;
	HKBrokerIdList AskSide;
};

struct OnePacket
{
	PacketHeader Header;
	PacketValues Values;
	unsigned short OtherIndicatorsTotal;
	HKBrokerIds BrokerIds;
};
typedef vector<OnePacket> Packets;

struct OneQueueAtPos
{
	vector<unsigned short> Ids;
};

typedef OneQueueAtPos* OneQueue;

#endif  // _PACKET_H